package com.kxf.mvptest.presenter;

import com.kxf.mvptest.contract.LoginContract;
import com.kxf.mvptest.listeners.LoginListener;
import com.kxf.mvptest.model.LoginModelImpl;

/**
 * @ProjectName: AndroidTestDemo
 * @Package: com.kxf.mvptest.presenter
 * @ClassName: LoginPresenterImpl
 * @Description: java类作用描述
 * @Author: kuangxuefeng
 * @qq: 1024883177
 * @CreateDate: 2020/5/20 17:52
 */
public class LoginPresenterImpl implements LoginContract.Presenter {
    private LoginContract.View view = null;

    public LoginPresenterImpl(LoginContract.View view) {
        this.view = view;
    }

    @Override
    public void login(LoginListener listener) {
        view.showLoading();
        new LoginModelImpl().login(listener);
    }
}
